package cn.tedu._06interceptor.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Justin Parker
 * @Date 2024/8/14 0014 10:38
 * @Version 1.0
 */
@Slf4j
@Api(tags = "用户模块")
@RestController
@RequestMapping("/v1/users")
public class UserController {

    @ApiOperation(value = "注册")
    @GetMapping("reg")
    public String reg(){
        return "注册成功";
    }

    @ApiOperation(value = "登录")
    @GetMapping("login")
    public String login(){
        return "登录成功";
    }

    @ApiOperation(value = "获取当前用户信息")
    @GetMapping("currentUser")
    public String currentUser(){
        return "获取成功";
    }

    @ApiOperation(value = "退出登录")
    @GetMapping("logout")
    public String logout(){
        return "退出成功";
    }
}
